#include <iostream>
#include <memory>
#include "EpollServer.hpp"

void usage(std::string proc_name)
{
    std::cout << "usage: \n\t" << proc_name << " port\n" << std::endl;
}

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        usage(argv[0]);
        return 1;
    }
    uint16_t port = std::stoi(argv[1]);

    std::unique_ptr<EpollServer> epsvr = std::make_unique<EpollServer>(port);
    epsvr->start();
    
    return 0;
}